package com.urea.system.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;

/**
 * 轮播图对象 t_banner
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_banner")
@Data
@ToString
public class Banner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 地址 */
    @Excel(name = "地址")
    @ApiModelProperty( "地址")
    private String url;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty( "名称")
    private String title;

    /** 是否激活;0否，1是 */
    @Excel(name = "是否激活;0否，1是")
    @ApiModelProperty( "是否激活;0否，1是")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty( "创建时间")
    private LocalDateTime createdTime;

    /** 文件id */
    private Long fileId;
    private String fileName;
}
